<%--
XPTracker - Alternative Agile Tracking Tool
Copyright (C) 2006-2009  Stephen Starkey

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
--%>
<%@ include file="/taglibs.jsp" %>
<s:layout-render name="/layout/normal.jsp">
  <s:layout-component name="search">
  <s:layout-component name="bodyElement"><body style="min-width:0"></s:layout-component>
  </s:layout-component>
      <s:layout-component name="header">

  </s:layout-component>
  <s:layout-component name="body">
    <p class="help">
      Search terms may contain any text that may occur in the story.  To specify conditional terms, use AND and OR
      keywords to join the terms together.  i.e.: "(lucy AND bob) OR scorcher"
    </p>

    <p class="help">
      Queries may be limited to specific fields on the story using the format "queryField:query".  Conditionals may also
      be used with fields.  i.e.: "severity:cold AND owner:lucy" "severity:(cold OR tepid) AND owner:bob"
    </p>

    <p class="help">
      Dates can be expressed using a special macro: date{today} will be replaced with today's date.  This can
      be used to search for stories that have date fields using ranges:
      <ul>
        <li>dueDate:[date{last week wednesday} TO date{next week wednesday}]</li>
        <li>lastModified:[20070501 TO 20070531]</li>
        <li>created:[date{May 1, 2007} TO date{May 30, 2007}]</li>
      </ul>
    </p>

    <p>
    The following query fields are supported for <strong>Stories</strong>--
      <ul>
      <c:forEach var="queryField" items="${actionBean.storyQueryFields}">
          <li><strong>${queryField.queryField}</strong> 
            <div class="note">
              ${queryField.description}<br/>
              <c:if test="${!empty queryField.format}">
                Format: ${queryField.format}<br/>
              </c:if>
              <c:if test="${!empty queryField.example}">
                Example: <br/>
                ${queryField.example}
              </c:if>
            </div>
          </li>
      </c:forEach>
      </ul>
    </p>

    <p>
    The following query fields are supported for <strong>Wiki Pages</strong>--
      <ul>
      <c:forEach var="queryField" items="${actionBean.wikiQueryFields}">
          <li><strong>${queryField.queryField}</strong>
            <div class="note">
              ${queryField.description}<br/>
              <c:if test="${!empty queryField.format}">
                Format: ${queryField.format}<br/>
              </c:if>
              <c:if test="${!empty queryField.example}">
                Example: <br/>
                ${queryField.example}
              </c:if>
            </div>
          </li>
      </c:forEach>
      </ul>
    </p>
  </s:layout-component>
</s:layout-render>